package com.wei.violet.config

import java.util.Properties

import com.typesafe.config.{Config, ConfigFactory}
import com.wei.violet.config.ConfigHandle.config

object ConfigHandle {

  private val config: Config = ConfigFactory.load()
  val user=config.getString("db.user")
  val passwd= config.getString("db.passwd")
  val driver=config.getString("db.driver")
  val url=config.getString("db.url")
  val protable=config.getString("db.protable")
  val localtable=config.getString("localtable")
  val host=config.getString("jedis.host")
  val port=config.getInt("jedis.port")
  val conn = new Properties()
  conn.setProperty("user", user)
  conn.setProperty("password",passwd)
  conn.setProperty("driver", driver)


}
